home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>Upload di un file</title>
- </head>
- <body>
- <h4>
- <?php
- $dir="upload/".$_FILES['mio']['name'];
- if (move_uploaded_file($_FILES['mio']['tmp_name'], $dir)) {
- echo "Il file Φ stato caricato con successo. Ecco le informazioni di debug stampate con la funzione print_r:\n<pre>";
- print_r($_FILES);
- }
- else {
- echo "Non Φ stato possibile caricare il file. Ecco le informazioni di debug stampate con la funzione print_r:\n<pre>";
- print_r($_FILES);
- }
- ?>
- </body>
- </html>